CC=g++
CFLAGS=-Wall -Werror
HASH=SHA1
#HASH=MD5

SRC:= $(wildcard *.cpp)
OBJ:= $(SRC:.cpp=.o)
ELF_NAME=cryptotest
all: $(ELF_NAME).elf

%.o: %.cpp
	$(CC) -D$(HASH) $(CFLAGS) -c $< -o $@

$(ELF_NAME).elf: $(OBJ)
	$(CC) $^ -o $@ 

clean:
	rm -rf *.o *~

mrproper: clean
	rm -rf $(ELF_NAME).elf
